import homepageType from "./homepageType";

const initState = {
  menu: {
    accCardManage: [],
    sysManage: [],
  }
};

const homepageReducers = (state = initState, action: any) => {
  switch (action.type) {
    case homepageType.GET_USER_MENU:
      return {
        ...state,
        menu: action.payload
      };

    default:
      return state;
  }
};

export default homepageReducers;
